import request from '@/utils/request'

// 查询获取积分记录列表
export function listUserIntegralLog(query) {
  return request({
    url: '/business/userIntegralLog/list',
    method: 'get',
    params: query
  })
}

// 查询获取积分记录详细
export function getUserIntegralLog(id) {
  return request({
    url: '/business/userIntegralLog/' + id,
    method: 'get'
  })
}

// 新增获取积分记录
export function addUserIntegralLog(data) {
  return request({
    url: '/business/userIntegralLog',
    method: 'post',
    data: data
  })
}

// 修改获取积分记录
export function updateUserIntegralLog(data) {
  return request({
    url: '/business/userIntegralLog',
    method: 'put',
    data: data
  })
}

// 删除获取积分记录
export function delUserIntegralLog(id) {
  return request({
    url: '/business/userIntegralLog/' + id,
    method: 'delete'
  })
}
